package com.example.Controller;

import com.example.Model.QutionModel;
import com.example.Server.AdminServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@CrossOrigin(origins = "*")
@RequestMapping("/admin")
@RestController
public class AdminController {
    @Autowired
    AdminServer _Server;
    @PostMapping(value = "/addQution",produces = "application/json;charset=UTF-8")
    public QutionModel AddQution(@RequestBody QutionModel data){
        _Server.CommitQution(data);
        return  data;
    }



}
